package day2.copy;

import java.util.concurrent.CopyOnWriteArrayList;

public class Test {
    public static void main(String[] args) {
        CopyOnWriteArrayList ca = new CopyOnWriteArrayList();
        ca.add("one");
        ca.add(123);
        for (int i = 0; i < ca.size(); i++) {
            System.out.println(ca.get(i));
        }
    }
}
